<template>
  <div class="com_box">
    <div class="title">{{ title }}</div>
    <div class="description">{{ description }}</div>
  </div>
</template>

<script>
export default {
  name: "TitleCom",
  props: {
    obj: {},
  },
  computed: {
    title() {
      return this.obj?.title || "未传入";
    },
    description() {
      return this.obj?.description || "未传入";
    },
  },
};
</script>

<style scoped lang="scss">
.com_box {
  padding: 10px;
}
</style>
